import React, { useEffect } from 'react';
import Example from './components/Example'
import Example2 from './components/Example2'

function App() {
  console.log('render...')

  useEffect(() => {
    Promise.resolve(1).then(() => {
      console.log('testing',);
    })
  }, []);

  setTimeout(() =>{
    console.log(1)
  }, 1)

  Promise.resolve(7777).then((value) => {
    console.log('value => ' + value);
  })

  console.log(999)
  return (
    <div className="App">
      this is app
      {/* <Example /> */}
      <Example2 />
    </div>
  );
}

export default App;
